package online.longzipeng.cinemasys.dto.type;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import online.longzipeng.cinemasys.entity.Type;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lzp
 * @date 2021/4/25 11:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TypeQueryResponse implements Serializable {

    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 类别名称
     */
    private String name;

    /**
     * 父级类别
     */
    private Type type;

}
